package unq.tpi.persistencia.alumnos.dao.hbm;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;


public class DBConnector {
	
	private static SessionFactory sessionFactory = null;
	
	public static SessionFactory getSessionFactory() {
		if(sessionFactory == null){
			Configuration cfg = new Configuration();
			cfg.configure();
			sessionFactory = cfg.buildSessionFactory();
		}
		
		return sessionFactory;
	}		
}

